﻿// -----------------------------------------------------------------------
// <copyright file="DirectoryNotFoundException.cs" company="Company">
// Company 2011
// </copyright>
// -----------------------------------------------------------------------

using System;
using System.Runtime.InteropServices;
using Company.IO.Interfaces;

namespace Company.System.IO
{
    /// <summary>
    /// The exception that is thrown when part of a file or directory cannot be found.
    /// </summary>
    [Serializable]
    [Guid("f774da17-122d-4ad0-bc31-0406f346e2ab")]
    public class DirectoryNotFoundException : Exception, IDirectoryNotFoundException
    {
        /// <summary>
        /// Initializes a new instance of the DirectoryNotFoundException class
        /// </summary>
        /// <param name="systemIoConverter">The converter to use</param>
        /// <param name="directoryNotFoundException">The DirectoryNotFoundException object</param>
        public DirectoryNotFoundException(ISystemIoConverter systemIoConverter,
                                          global::System.IO.DirectoryNotFoundException directoryNotFoundException)
            : base(systemIoConverter, directoryNotFoundException)
        {
        }
    }
}